package com.xhtt.modules.app.controller.inspection;

import com.xhtt.common.utils.R;
import com.xhtt.modules.inspection.service.IInsLinePointService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 线路检点关系
 * </p>
 *
 * @author xj
 * @since 2019-01-18
 */
@RestController
@RequestMapping("/ins-line-point")
@Api(value = "巡检-线路检点关系", tags = "巡检-线路检点关系")
public class InsLinePointController {

    @Autowired
    private IInsLinePointService insLinePointService;

    @PostMapping(value = "/up")
    @ApiOperation("线路绑定的检测点上移 - 没用")
    public R up(@RequestParam Integer pointId) {
        insLinePointService.up(pointId);
        return R.ok();
    }

    @PostMapping(value = "/down")
    @ApiOperation("线路绑定的检测点下移 - 没用")
    public R down(@RequestParam Integer pointId) {
        insLinePointService.down(pointId);
        return R.ok();
    }

}
